/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo01;

/**
 *
 * @author Administrator
 */
public class Book {
    private int no;
    private String name;
    private double price;

    public Book(int no, String name, double price) {
        this.no = no;
        this.name = name;
        this.price = price;
    }
    public static void main(String[] args) {
        Book pbook = new Book(2014, "电脑贵啊！", 20000);
        System.out.println("编号:" + pbook.no);
        System.out.println("图书名:" + pbook.name);
        System.out.println("价格:" + pbook.price);
    }
}